Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF-3345 Fix sort order blinks when deleting emails in search #3437

Open
wants to merge 1 commit into
base: maintenance-v0.14.2
Choose a base branch
from

Conversation

dab246
Copy link
Member

@dab246 dab246 commented Jan 17, 2025

Issue

#3345

Reproduce

demo.mov

Root cause

  • Because the before date time is null when sort order by sender every time user refresh change email

Resolved

demo.mov

Copy link

This PR has been deployed to https://linagora.github.io/tmail-flutter/3437.

@@ -666,7 +666,9 @@ class ThreadController extends BaseController with EmailActionController {
_searchEmailFilter.sortOrderType.isScrollByPosition(),
0,
),
beforeOption: const None(),
beforeOption: !_searchEmailFilter.sortOrderType.isScrollByPosition()
? const None()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a good idea in case:

  • user search in a range of time, but when it refreshes, before is not applied

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it still works correctly in this case. Please review the details.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoangdat Please attach error video here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants